﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Repository;
using Model;
using WZVTC.SoftDev.DDDFW.EntityServices;

namespace EntityServices
{
    public class NetworkmallEntityServicesFactory:EntitiesServicesFactory
    {
        public NetworkmallEntityServicesFactory() : base(new NetworkmallContainer()) { }
        目录Services _目录Service = null;
        public 目录Services 目录Services
        {
            get
            {
                if (_目录Service == null)
                    _目录Service = new 目录Services(base._context, new 目录Repository(base._context));
                return _目录Service;
            }
        }

        商品Services _商品Services = null;
        public 商品Services 商品Services
        {
            get
            {
                if (_商品Services == null)
                    _商品Services = new 商品Services(base._context, new 商品Repository(base._context));
                return _商品Services;
            }
           
        }

    }
}
